<template>
  <div class="outOrderDetail" @click.stop="aotuTab=false">
    <div style="margin-bottom: 10px">
      <jc-button
        :btn-arr="['remove', 'reload', 'pass', 'sub', 'closure', 'closeHang', 'save', 'hangUp1', 'push', 'option', 'list', !list.length && 'check']"
        :disab-arr="['close', 'cancel', 'com1', 'com2', 'using', 'toExcel', 'freeze']"
        :fbillno="production.fbillNo"
        :list="'/outOrderList'"
        @save="save"
        @refresh="queryTPrdMoDetails"
        @submit="save(1)"
        @noSubmit="submit(2)"
        @audit="audit(1)"
        @noAudit="audit(2)"
        @del="delPublic"
        @pushDown="isdanjuDialog=true"
        @check="check('up')"
        @check1="check('down')"
        @closure="closure(1)"
        @closure1="closure(2)"
        @closeHang="closeHang(1)"
        @closeHang1="closeHang(2)"
        @hangUp2="entryHangUp(1)"
        @hangUp3="entryHangUp(2)"
      />
    </div>
    <el-tabs v-model="activeName" @tab-click="handleOther">
      <el-tab-pane :label="$t('market.info')" name="first">
        <el-form ref="purchaseRef" :model="production" label-width="100px">
          <el-form-item :label="$t('market.documentstatus')">
            <el-tag :type="production.stateColor">{{ production.fdocumentStatus }}</el-tag>
          </el-form-item>
          <el-form-item :label="$t('market.orderDate')">
            <el-date-picker
              v-model.trim="production.fdate"
              type="date"
              size="mini"
              value-format="yyyy-MM-dd"
              :disabled="isDisabled"
            />
          </el-form-item>
          <el-form-item :label="$t('market.outbillNo')">
            <el-input v-model.trim="production.fbillNo" disabled />
          </el-form-item>
          <el-form-item :label="$t('market.cust')">
            <el-input v-model.trim="production.customer" disabled />
          </el-form-item>
          <el-form-item :label="$t('market.paezText1')">
            <el-input v-model.trim="production.fpaezText" disabled />
          </el-form-item>
          <el-form-item :label="$t('market.closure')">
            <el-tag v-if="production.fendstatus === 'B'" type="danger">{{ $t('btn.settle') }}</el-tag>
            <el-tag v-else>{{ $t('market.normal') }}</el-tag>
          </el-form-item>
          <!--          <el-form-item label="委外组织">-->
          <!--            <el-input v-model.trim="production.fsuborg" disabled />-->
          <!--          </el-form-item>-->
          <!--          <el-form-item label="结算组织">-->
          <!--            <el-input v-model.trim="production.fsettleorg" disabled />-->
          <!--          </el-form-item>-->
        </el-form>
        <div style="margin-top: 10px">
          <div>
            <el-button size="mini" style="margin-bottom: 5px;" @click="newHang">{{ $t('btn.newHang') }}<!--新增行--></el-button>
            <el-button size="mini" style="margin-bottom: 5px;" @click="delHang">{{ $t('btn.delHang') }}<!--删除行--></el-button>
            <el-button size="mini" @click.native="batchFill">{{ $t('btn.batchFill') }}<!--批量填充--></el-button>
          </div>
          <jc-table
            ref="table"
            :table-data="tableData"
            :table-header="tableHeard"
            :table-height="tableHeight"
            table-selection
            :get-summaries="getSummaries"
            show-summary
            @selectionChange="handleSelectAll"
            @cellClick="cellClick"
          >
            <!-- 用料单号 -->
            <template v-slot:btnState="col">
              <el-link type="primary" @click="materialsDetail(col.scope.row)">{{ col.scope.row.userNo }}</el-link>
            </template>
            <!--  物料编码  -->
            <template v-slot:btnStates="col">
              <el-input
                v-model.trim="col.scope.row.fnumber"
                size="mini"
                :disabled="isDisabled || col.scope.row.fstatusId !== '1'"
                @input="getAtuo(col.scope.$index, col.scope.row.fnumber)"
              >
                <i
                  slot="prefix"
                  class="iconfont icon-jin-rud-ao-bo"
                  @click="sonJumpMateriel(col.scope.row.fnumber)"
                />
                <i
                  slot="suffix"
                  class="el-input__icon el-icon-search"
                  @click="handleGetMateriel(col.scope.row, col.scope.$index)"
                />
              </el-input>
              <div v-if="aotuTab && material === col.scope.$index" :class="material<7 ? 'tabPosit': 'tabPosit1'">
                <number-code :fnumber="fnumber" @material="materialData" />
              </div>
            </template>
            <template v-slot:tagSlot="col">
              <el-input-number v-model="col.scope.row.fqty" :disabled="isDisabled" size="mini" />
            </template>
            <!-- 仓库-->
            <template v-slot:operaSlot="col">
              <el-input
                v-if="!isDisabled"
                v-model="col.scope.row.fstockName"
                size="mini"
                :disabled="isDisabled"
              >
                <i
                  slot="suffix"
                  class="el-input__icon el-icon-search"
                  @click="handleWarehouse(col.scope.$index)"
                />
              </el-input>
              <span v-else>{{ col.scope.row.fstockName }}</span>
            </template>
            <template v-slot:orderSlot="col">
              <span
                v-if="col.scope.row.fcompleteQty > 0"
                style="color: #67c23a;"
                @click="pushDeta(col.scope.row.fentryId)"
              >{{ col.scope.row.fcompleteQty }}</span>
              <span v-else @click="pushDeta(col.scope.row.fentryId)">{{ col.scope.row.fcompleteQty }}</span>
            </template>
            <!--业务状态-->
            <template v-slot:billSlot="col">
              <el-select v-model="col.scope.row.fstatus" filterable @change="tabStus(col.scope.row)">
                <el-option v-for="item in mostatusData" :key="item.fid" :label="item.fname" :value="item.viewId" />
              </el-select>
            </template>
            <!--领料状态-->
            <template v-slot:text3Slot="col">
              <el-tag :type="col.scope.row.pickColor">{{ col.scope.row.fpickstatus }}</el-tag>
            </template>
            <!--明细挂起状态-->
            <template v-slot:text2Slot="col">
              <el-tag v-if="col.scope.row.fispending === 1" type="danger">{{ $t('btn.hangUp') }}</el-tag>
              <el-tag v-else>{{ $t('btn.hangUp2') }}</el-tag>
            </template>
            <!--结案状态-->
            <template v-slot:text1Slot="col">
              <el-tag v-if="col.scope.row.fendstatus === 'B'" type="danger">{{ $t('btn.settle') }}</el-tag>
              <el-tag v-else>{{ $t('market.normal') }}</el-tag>
            </template>
            <!--开工-->
            <template v-slot:text4Slot="col">
              <el-date-picker
                v-model.trim="col.scope.row.fplanstartDate"
                type="date"
                value-format="yyyy-MM-dd"
                size="mini"
                style="width: 163px"
              />
            </template>
            <!--完工-->
            <template v-slot:text5Slot="col">
              <el-date-picker
                v-model.trim="col.scope.row.fplanfinishDate"
                type="date"
                value-format="yyyy-MM-dd"
                size="mini"
                style="width: 163px"
              />
            </template>
            <!--要货-->
            <template v-slot:text6Slot="col">
              <el-date-picker
                v-model.trim="col.scope.row.fdeliveryDate"
                type="date"
                value-format="yyyy-MM-dd"
                size="mini"
                style="width: 163px"
              />
            </template>
          </jc-table>
        </div>
      </el-tab-pane>
      <el-tab-pane :label="$t('market.other')" name="log">
        <jc-marker
          ref="log"
          :fnumber="production.fbillNo"
          other-height="64vh"
          :other-url-object="otherUrlObject"
        />
      </el-tab-pane>
    </el-tabs>
    <el-dialog
      v-dialogDrag
      :title="$t('market.checkBill')"
      model
      :visible.sync="isdanjuDialog"
      :close-on-click-modal="false"
      width="600px"
      center
    >
      <div style="text-align: center;height: 100px;line-height: 100px">
        <el-radio-group v-model="orderLX">
          <el-radio v-for="item in outReceipts" :key="item" :label="item">{{ item }}</el-radio>
        </el-radio-group>
      </div>
      <hr>
      <div v-if="orderLX===$t('menu.purOrderAsi')" style="text-align: center;">
        {{ $t('market.rule') }}
        <el-input v-model="convert" size="mini" disabled style="width: 178px;margin-bottom: 5px;" />
        <br>
        {{ $t('market.billType') }}
        <el-select
          v-model.trim="fbillTypeId"
          size="mini"
          filterable
        >
          <el-option label="标准委外订单" value="160" />
        </el-select>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" @click="isdanjuDialog = false">{{ $t('btn.cancel') }}</el-button>
        <el-button size="mini" type="primary" @click="pushDownOrder()">{{ $t('btn.confirm') }}</el-button>
      </span>
    </el-dialog>
    <!--    物料弹窗-->
    <material v-if="isMateria" :msg="material" @material="materialData" />
    <!-- 仓库 -->
    <selectCK
      v-if="seleceVisiblit"
      :msg="msgCK"
      :fmaterial-id="stockFnumber"
      @client="selectCK"
    />
    <!-- 下推明细 -->
    <pushDetail
      v-if="pushVisiblit"
      :fid="pushEntryId"
      type="4"
      @client="pushVisiblit=false"
    />
    <upDown v-if="upDownVis" :msg="cha" :fentryid="fentryData" @client="upDownVis=false" />
  </div>
</template>

<script>
import {
  auditSubMos,
  delPrdMosOut,
  unauditSubMos,
  queryReqorderDetails,
  submitSubMos,
  unsubmitSubMos,
  updateSubMo,
  updateSubStatus,
  pushToSubUninstock,
  pushPurRequisit,
  updateDetailedfispending1,
  endWw,
  notEnd,
  entryEnds,
  entryNotEnd
} from '@/api/production/productionList'
import { toMxAmina, toPickStues } from '@/components/ToMxamineState'
import jcMarker from '@/components/marker'
import { queryViewItem } from '@/api/marketManage/marketOrder'
import jcButton from '@/components/Button'
import pushDetail from '@/views/production/collect/components/pushDetail'
import jumpMateriel from '@/components/JumpMateriel'

export default {
  name: 'ProductionDetails',
  components: {
    jcMarker,
    upDown: () => import('@/components/upDown'),
    material: () => import('@/views/market/marketManage/createMarkerOrder/components/material'),
    numberCode: () => import('@/components/NumberCode'),
    selectCK: () => import('@/views/production/collect/components/seleceCK'),
    jcButton,
    pushDetail
  },
  mixins: [jumpMateriel],
  props: {
    msg: {
      type: String,
      default: ''
    },
    list: {
      type: Array,
      default: function() {
        return []
      }
    }
  },
  data() {
    return {
      upDownVis: false,
      cha: '',
      fentryData: [],
      msgCK: 2, // 转入仓库
      pushVisiblit: false,
      pushEntryId: 0,
      stockFnumber: '',
      seleceVisiblit: false, // 仓库
      orderLX: this.$t('menu.purOrderAsi'),
      outReceipts: [this.$t('menu.purOrderAsi')], // 委外 委外退库单'采购订单'
      fbillTypeId: '160',
      convert: this.$t('market.wwzcg'), // '委外订单至采购订单',
      isdanjuDialog: false, // 选择单据
      activeName: 'first',
      isDisabled: false,
      aotuTab: false,
      isMateria: false,
      material: '',
      production: {
        fid: '',
        fdate: '',
        fbillNo: '',
        fpaezText: '',
        customer: '',
        fdocumentStatus: ''
      },
      deleteData: [], // 删除用料单数据
      dialogBol: true,
      tableHeight: '73vh',
      tableData: [],
      tableHeard: [
        { label: this.$t('market.fseq'), prop: 'fseq', width: '80' },
        { label: this.$t('market.userNo'), type: 'state', prop: 'userNo', width: '130' },
        { label: this.$t('market.fmaterial'), type: 'states', prop: 'fnumber', width: '150px' },
        { label: this.$t('shop.fname2'), prop: 'fmaterialName', width: '100' },
        { label: this.$t('market.fmodel'), prop: 'fmodel' },
        { label: this.$t('shop.fspecificaTion'), prop: 'fspecificaTion' },
        { label: this.$t('market.fdescripTion'), prop: 'fdescripTion', minWidth: '200px' },
        { label: this.$t('market.funit'), prop: 'funitName', width: '80' },
        { label: this.$t('market.fqty'), type: 'tag', prop: 'fqty', width: '80' },
        { label: this.$t('market.completeQty'), type: 'order', prop: 'fcompleteQty', width: '80' },
        { label: this.$t('market.readyQty'), prop: 'freadyQty', width: '80' },
        { label: this.$t('market.stock2'), type: 'operate', prop: 'fstockName', width: '120' },
        { label: this.$t('market.stockQty'), prop: 'stockQty', width: '80' },
        { label: this.$t('market.pickstatus'), type: 'text3', prop: 'fpickstatus', width: '80' },
        { label: this.$t('market.hangUp1'), prop: 'fispending', type: 'text2', width: '80' },
        { label: this.$t('market.closure'), type: 'text1', width: '80' },
        // { label: this.$t('market.busineState'), type: 'bill', prop: 'fstatus', width: '110' },
        { label: this.$t('market.planstartDate'), prop: 'fplanstartDate', type: 'text4', width: '120' },
        { label: this.$t('market.planfinishDate'), prop: 'fplanfinishDate', type: 'text5', width: '120' },
        { label: this.$t('market.deliveryDate'), prop: 'fdeliveryDate', type: 'text6', width: '120' },
        { label: this.$t('market.proFbillno'), prop: 'fbillNo' }
        // { label: '入库组织', prop: 'fstockorg' },
        // { label: '货主', prop: 'fowner' }
      ],
      delFentrys: [],
      mostatusData: [],
      otherUrlObject: {}
    }
  },
  watch: {
    msg() {
      this.queryTPrdMoDetails()
      this.business()
    }
  },
  created() {
    if (this.$route.params.id) {
      this.queryTPrdMoDetails()
      this.business()
    }
    this.tableHeight = window.innerWidth > 1440 ? 'calc(100vh - 270px)' : '74vh'
  },
  methods: {
    // 下推明细
    pushDeta(id) {
      this.pushVisiblit = true
      this.pushEntryId = id
    },
    // 输入物料编码
    getAtuo(index, fnumber) {
      this.material = index
      this.aotuTab = true
      var vm = this
      clearTimeout(vm.timer) // 清除未执行的代码，重置回初始化状态
      vm.timer = setTimeout(() => {
        this.fnumber = fnumber
      }, 600)
    },
    // 获取数据
    async queryTPrdMoDetails() {
      const DATA = {
        fbillNo: this.$route.params.id || this.msg
      }
      const RES = await queryReqorderDetails(DATA)
      if (RES.code === 0) {
        this.production = toMxAmina(RES.data)
        this.otherUrlObject = RES.data
        this.tableData = RES.data.details.map(item => {
          return toPickStues(item)
        })
        this.isDisabled = this.production.fdocumentStatus === this.$t('market.state1') || this.production.fdocumentStatus === this.$t('market.state2')
      } else {
        this.$confirm(RES.message, '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'error'
        })
      }
    },
    // 保存
    save(ev) {
      this.Entrys = []
      this.tableData.forEach(res => {
        this.Entrys.push({
          funitId: res.funitId,
          fstockId: res.fstockId,
          fentryId: res.fentryId,
          fqty: res.fqty,
          fmaterialId: res.fmaterialId,
          fplanstartDate: res.fplanstartDate,
          fplanfinishDate: res.fplanfinishDate,
          fdeliveryDate: res.fdeliveryDate
        })
      })
      const DATA = {
        fid: this.production.fid,
        fdate: this.production.fdate,
        moBillNo: this.production.fbillNo,
        delFentrys: this.delFentrys,
        Entrys: this.Entrys
      }
      updateSubMo(DATA).then(res => {
        if (res.code === 0) {
          ev === 1 ? this.submit(1) : this.queryTPrdMoDetails()
          this.$message({ showClose: true, message: res.message, type: 'success' })
        } else {
          this.$confirm(res.message, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'error'
          })
        }
      })
    },
    // 业务状态
    business() {
      queryViewItem({ viewName: 'SX_V_MOSTATUS' }).then(res => {
        this.mostatusData = res.data.list
      })
    },
    // 打开物料弹窗
    handleGetMateriel(row, index) {
      this.isMateria = true
      this.material = index
    },
    // 物料数据
    materialData(item) {
      if (item.fmaterialId) {
        const items = this.tableData[this.material]
        items.fmaterialId = item.fmaterialId
        items.fnumber = item.fnumber
        items.fdescripTion = item.fdescripTion
        items.fspecificaTion = item.fspecificaTion
        items.funitId = item.funitId
        items.funitName = item.funit
        items.fmodel = item.fmodel
      }
      this.isMateria = item.isMaterialDialog
    },
    // 更新业务状态
    tabStus(ev) {
      const DATA = {
        fentryId: ev.fentryId,
        fstatus: ev.fstatus
      }
      updateSubStatus(DATA).then(res => {
        if (res.code === 0) {
          this.queryTPrdMoDetails()
          this.$message({ showClose: true, message: res.message, type: 'success' })
        } else {
          this.queryTPrdMoDetails()
          this.$confirm(res.message, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'error'
          })
        }
      })
    },
    // 打开仓库弹窗
    handleWarehouse(index) {
      this.indexSelf = index
      this.stockFnumber = this.tableData[index].fnumber
      this.seleceVisiblit = true
    },
    // 获取仓库数据
    selectCK(ev) {
      if (ev.fstockId) {
        const item = this.tableData[this.indexSelf]
        item.fstockId = ev.fstockId
        item.fstockName = ev.fname
        item.stockQty = ev.sumQty
      }
      this.seleceVisiblit = false
    },
    // 点击用料单
    materialsDetail(ev) {
      const id = ev.userNo
      if (this.msg) {
        this.$emit('userNo', id, 1)
      } else {
        this.$router.push({ path: `/productionOutEdit/${id}` })
      }
    },
    // 全选
    handleSelectAll(val) {
      this.delfnumber = val[0]?.fnumber
      this.fentryData = []
      this.fidsData = []
      this.selectVal = []
      val.forEach(item => {
        item.fbillNo && this.selectVal.push(item.fbillNo)
        this.fentryData.push(item.fentryId)
        this.fidsData.push(item.fid)
      })
      this.fidsData = Array.from(new Set(this.fidsData))
    },
    // 下推
    pushDownOrder() {
      if (this.orderLX === '委外退库单') {
        const DATA = {
          SoucrceIds: this.fidsData,
          EntryIds: this.fentryData
        }
        pushToSubUninstock(DATA).then(res => {
          if (res.code === 0) {
            this.$message({ showClose: true, message: res.message, type: 'success' })
            this.$router.push({
              path: `/outTuiStockDetail/${res.data.fid}`
            })
            this.isdanjuDialog = false
          } else {
            this.$confirm(res.message, '提示', {
              confirmButtonText: '确定',
              type: 'error'
            })
          }
        })
      } else if (this.orderLX === this.$t('menu.purOrderAsi')) {
        const DATA = {
          SoucrceIds: this.fidsData,
          EntryIds: this.fentryData,
          fbillTypeId: this.fbillTypeId
        }
        pushPurRequisit(DATA).then(res => {
          if (res.code === 0) {
            this.$message({ showClose: true, message: res.message, type: 'success' })
            this.$router.push({
              path: `/editPurchase/${res.data}`
            })
            this.isdanjuDialog = false
          } else {
            this.$confirm(res.message, '提示', {
              confirmButtonText: '确定',
              type: 'error'
            })
          }
        })
      }
    },
    // 公共函数
    toExamineFun(api, ev) {
      const DATA = {
        Numbers: [this.production.fbillNo],
        EntryIds: ev === 2 ? this.fentryData : []
      }
      api(DATA).then(res => {
        if (res.code !== 0) {
          this.$confirm(res.message, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'error'
          })
          return
        }
        this.queryTPrdMoDetails()
        this.innerHTM = ''
        res.data.forEach(res => {
          this.innerHTM += '<div>' + res + '</div>'
        })
        this.$notify.warning({
          title: '提示',
          message: this.innerHTM,
          duration: 3000, offset: 50,
          dangerouslyUseHTMLString: true
        })
      })
    },
    // 提交
    async submit(ev) {
      const api = ev === 1 ? submitSubMos : unsubmitSubMos
      this.toExamineFun(api)
    },
    // 审核
    async audit(ev) {
      const api = ev === 1 ? auditSubMos : unauditSubMos
      this.toExamineFun(api)
    },
    // 结案
    async closure(ev) {
      const api = ev === 1 ? endWw : notEnd
      this.toExamineFun(api)
    },
    // 行结案
    async closeHang(ev) {
      const api = ev === 1 ? entryEnds : entryNotEnd
      this.toExamineFun(api, 2)
    },
    // 删除
    delPublic() {
      if (this.isDisabled) {
        this.$confirm('请先反审核后再删除', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'error'
        })
        return
      }
      this.$confirm('此操作将永久删除该订单, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        const DATA = { Numbers: [this.production.fbillNo] }
        delPrdMosOut(DATA).then(res => {
          if (res.code !== 0) {
            this.$confirm(res.message, '提示', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'error'
            })
            return
          }
          if (this.msg) {
            this.$emit('reload')
          } else {
            // 关闭当前页面
            this.$store.dispatch('tagsView/guanbi', this.$route)
            this.$router.push({ path: '/outOrderList' })
          }
          this.$message({ showClose: true, message: res.message, type: 'success' })
        })
      })
    },
    // 明细行挂起、反挂起
    async entryHangUp(ev) {
      const DATA = {
        fids: this.fentryData,
        fispending: ev === 1 ? 1 : 0
      }
      updateDetailedfispending1(DATA).then(res => {
        if (res.code === 0) {
          this.$message({ showClose: true, message: res.message, type: 'success' })
          this.queryTPrdMoDetails()
        } else {
          this.$confirm(res.message, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          })
        }
      })
    },
    // 上查、下查
    check(ev) {
      this.fentryData = []
      this.tableData.forEach(res => {
        this.fentryData.push(res.fentryId)
      })
      this.cha = ev
      this.upDownVis = true
    },
    // 新增行
    newHang() {
      const DATA = {
        userNo: '',
        fnumber: '',
        fmodel: '',
        fcompleteQty: '',
        fbillNo: '',
        fspecificaTion: '',
        fdescripTion: '',
        funitName: '',
        fqty: 0,
        fplanstartDate: '',
        fstatus: '',
        fplanfinishDate: '',
        fdeliveryDate: ''
      }
      this.tableData.push(DATA)
    },
    // 删除行
    delHang() {
      this.tableData.forEach((res, index) => {
        if (res.fnumber === this.delfnumber) {
          this.delFentrys.push(res.fentryId)
          this.tableData.splice(index, 1)
          this.$refs.table.clearSelect()
        }
      })
    },
    // 点击单元格
    cellClick(row, column, cell, event) {
      this.property = column.property
      this.subscript = row.index
    },
    // 批量填充
    batchFill() {
      const item = this.tableData[this.subscript][this.property]
      this.tableData.map((res, index) => {
        if (index >= this.subscript) {
          res[this.property] = item
        }
      })
    },
    // 操作记录
    handleOther(tab) {
      if (tab.name === 'log') {
        this.$refs.log.otherlog()
      }
    }
  }
}
</script>
<style lang="scss" scope>
.outOrderDetail {
  @include listBom;
  .tabPosit {
    padding: 5px;
    box-shadow: 0 0 2px #aaa;
    position: absolute;
    top: 3.5vh;
    left: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 99999!important;
  }
  .tabPosit1 {
    padding: 5px;
    box-shadow: 0 0 2px #aaa;
    position: absolute;
    top: -25.69vh;
    left: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 9999;
  }
  .el-tabs {
    .el-form {
      display: flex;
      flex-wrap: wrap;

      .el-input.is-disabled .el-input__inner {
        height: 30px;
        line-height: 30px;
      }

      .el-form-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 35px;
        width: 275px;
        min-width: 246px;
        margin-bottom: 5px;
        .btnType {
          margin-right: 5px;
        }

        .el-date-editor.el-input {
          width: 100% !important;
        }

        .el-select {
          width: 100%;
        }
      }
    }
  }
}
</style>
